TEDeactivate
TEDeactivate deactivates an edit record by unhighlighting its selection range or erasing the vertical-bar caret.
hTE is a handle obtained via TENew (old style TextEdit record) or TEStylNew (new style TextEdit record). It leads to a variable-length TERec structure and identifies the edit record to be deactivated.
function indicates that the window containing the edit record has become
inactive (i.e., on activateEvt events when modifiers bit 0 is cleared to 0).
you want to get rid of the edit record altogether.